how to add date and time in text field